﻿
@{
    ViewBag.Title = "拓垦钱包";
    Layout = "~/Views/Shared/_MallLayout.cshtml";
}
@model List<token_wallet_dto>
@{ var red = Model.Where(s => s.type == TokenTransferType.None).FirstOrDefault();
    var distribution = Model.Where(s => s.type == TokenTransferType.Distribution).FirstOrDefault();
    var upgrade = Model.Where(s => s.type == TokenTransferType.Upgrade).FirstOrDefault();
    var shop = Model.Where(s => s.type == TokenTransferType.Shop).FirstOrDefault();
}
<body class="page-center page-wallet">

    @*<div class="lt-head">
        <a href="javascript:history.go(-1);">
            <i class="icon-back fn-left"></i>
        </a>
        <span class="center">拓垦钱包</span>
    </div>*@
    <!--header end-->

    <div >
        <div class="lt-box">
            <div class="item mb30" onclick="location.href='/User/MyAsset'">
                <i class="icon-go2"></i>
                <div class="tit">
                    <span><i class="icon-wallet1"></i></span>
                    红钻数
                </div>
                <p>
                    <span class="fn60">@red.value</span><em class="fn48"> 个</em>
                </p>
            </div>
            <div class="item bg2 mb30" onclick="location.href='/mybill/WalletDetail?type=1'">
                <i class="icon-go2"></i>
                <div class="tit">
                    <span><i class="icon-wallet2"></i></span>
                    分销收益
                </div>
                <p>
                    <span class="fn60">@distribution.value</span><em class="fn48"> 元</em>
                </p>
            </div>
            @if (upgrade != null) {
                <div class="item bg3 mb30" onclick="location.href='/mybill/WalletDetail?type=2'">
                    <i class="icon-go2"></i>
                    <div class="tit">
                        <span><i class="icon-wallet3"></i></span>
                        课程收益
                    </div>
                    <p>
                        <span class="fn60">@upgrade.value</span><em class="fn48"> 元</em>
                    </p>
                </div>
            }

            @if (shop != null) {
                <div class="item bg4 mb30" onclick="location.href='/mybill/WalletDetail?type=3'">
                    <i class="icon-go2"></i>
                    <div class="tit">
                        <span><i class="icon-wallet4"></i></span>
                        店铺收益
                    </div>
                    <p>
                        <span class="fn60">@shop.value</span><em class="fn48"> 元</em>
                    </p>
                </div>
            }
        </div>
    </div>


    <script>
                // $('#tx').click(function(){
                //     swal({
                //         title: "提现功能正在开发中，敬请期待！",
                //         type: "warning",
                //         confirmButtonColor: "",
                //         confirmButtonText: "确定",
                //         closeOnConfirm: false
                //     })
                // })
    </script>
</body>

